package com.example.conf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author wpdcn
 * @since 2020-11-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("shop_freight_template_item")
@ApiModel(value="ShopFreightTemplateItemEntity对象", description="")
public class ShopFreightTemplateItemEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @Column(comment = "主键id")
    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Column(comment = "模板id")
    @ApiModelProperty(value = "模板id")
    private Long templateId;

    @Column(comment = "省份编码")
    @ApiModelProperty(value = "省份编码")
    private String provinceCode;

    @Column(comment = "城市编码")
    @ApiModelProperty(value = "城市编码")
    private String cityCode;

    @Column(comment = "区县编码")
    @ApiModelProperty(value = "区县编码")
    private String areaCode;

    @Column(comment = "所属省份")
    @TableField(exist = false)
    @ApiModelProperty("所属省份")
    private String provinceName;

    @Column(comment = "所属城市")
    @TableField(exist = false)
    @ApiModelProperty("所属城市")
    private String cityName;

    @Column(comment = "所属区县")
    @TableField(exist = false)
    @ApiModelProperty("所属区县")
    private String areaName;

    @Column(comment = "运费")
    @ApiModelProperty(value = "运费")
    private Double freight;


}
